<?php
/**
 * ExtDateMenu class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtDateMenu extends ExtDateMenuBase
{
    /**
     * Gets the value of ExtJS handler property
     * @return Function 
     */
    public function getHandler()
    {
    	return $this->getConfig("handler");
    }

    /**
     * Sets the value of ExtJS handler property
     * @param Function $value 
     */
    public function setHandler($value)
    {
    	$this->setConfig("handler",$value);
    }

    /**
     * Gets the value of ExtJS hideOnClick property
     * @return Boolean 
     */
    public function getHideOnClick()
    {
    	return $this->getConfig("hideonclick");
    }

    /**
     * Sets the value of ExtJS hideOnClick property
     * @param Boolean $value 
     */
    public function setHideOnClick($value)
    {
    	$this->setConfig("hideonclick",$value);
    }

    /**
     * Gets the value of ExtJS pickerId property
     * @return String 
     */
    public function getPickerId()
    {
    	return $this->getConfig("pickerid");
    }

    /**
     * Sets the value of ExtJS pickerId property
     * @param String $value 
     */
    public function setPickerId($value)
    {
    	$this->setConfig("pickerid",$value);
    }

    /**
     * Gets the value of ExtJS scope property
     * @return Object 
     */
    public function getScope()
    {
    	return $this->getConfig("scope");
    }

    /**
     * Sets the value of ExtJS scope property
     * @param Object $value 
     */
    public function setScope($value)
    {
    	$this->setConfig("scope",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'hideonclick' => 'hideOnClick',
            'pickerid' => 'pickerId'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'select' => array('picker','date')
        ));

        $this->jsconfigs = array_merge($this->jsconfigs,array(
            'handler' => true
        ));

        $this->proptags = array_merge($this->proptags,array(
            'datepicker' => true
        ));
        $this->setXType('datemenu');
        $this->setXClass('Ext.menu.DateMenu');
    }    
}
?>